<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@include file="template/adminHeader.jsp"%>
<center>
	<p>
		<b>page d'ajout d'un utilisateur </b>
	</p>
</center>
<br />
<form:form method="POST" commandName="userHelper">
	<form:errors path="*" cssClass="errorblock" element="div" />
	<table cellspacing="10">
		<tbody>
			<tr>
				<td>Prénom:</td>
				<td><form:input path="name"></form:input></td>
			</tr>
			<tr>
				<td>Nom:</td>
				<td><form:input path="familyName"></form:input></td>
			</tr>
			<tr>
				<td>Login:</td>
				<td><form:input path="login"></form:input></td>
			</tr>
			<tr>
				<td>Mot de passe:</td>
				<td><form:password path="password1"></form:password></td>
			</tr>
			<tr>
				<td>comfirmez mot de passe:</td>
				<td><form:password path="password2"></form:password></td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><form:input path="email"></form:input></td>
			</tr>
			<tr>
				<td>Téléphone:</td>
				<td><form:input path="tel"></form:input></td>
			</tr>
			<tr>
				<td>Département:</td>
				<td><form:select path="dept">
						<form:option value="NONE">Département</form:option>
						<form:options items="${deptList}" />
					</form:select></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" class="common_b blue"></td>
			</tr>
			<br />
			<br />
		</tbody>
	</table>
</form:form>

<%@include file="template/footer.jsp"%>
